package com.gateway.security.common.authentication.client;

import reactor.core.publisher.Mono;

import java.util.Map;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/11 21:13
 **/
public interface ClientPrincipalConverter {

    /**
     * 主体转换
     * @param claims
     * @return
     */
    Mono<ClientPrincipal> convert(Map<String, Object> claims);
}
